<template>
	<view class="sbzr">
		<view class="title">
			<text>申报责任</text>
		</view>
		<view class="nrzt">
			<view class="sbzrCon">
				<view class="cnText">本人承诺以下事项：</view>
				<view class="sbzrsx">
					<view class="sbzrsxH">请认真阅读申报责任注意事项</view>
					<view class="sbzrsxItem">
						<view class="sbzrsxIt">
							<uni-icons type="smallcircle-filled" size="30" class="sbsxIcon"></uni-icons>
							<view class="sbzrsxItcon">线上申报操作只能由<text style="color: red;">纳税人或承租人本人</text>操作</view>
						</view>
						<view class="sbzrsxIt">
							<uni-icons type="smallcircle-filled" size="30" class="sbsxIcon"></uni-icons>
							<view class="sbzrsxItcon">本人将对申报数据仔细核对无误后才确认申报</view>
						</view>
						<view class="sbzrsxIt">
							<uni-icons type="smallcircle-filled" size="30" class="sbsxIcon"></uni-icons>
							<view class="sbzrsxItcon">本人通过手机上传的申报资料都是真实有效的</view>
						</view>
						<view class="sbzrsxIt">
							<uni-icons type="smallcircle-filled" size="30" class="sbsxIcon"></uni-icons>
							<view class="sbzrsxItcon">本人已知悉，如果属于虚假纳税申报的，税务机关将按照《中华人民共和国税收征收管理法》的有关规定处理，并将不诚信记录纳入个人征信系统。
							</view>
						</view>
						<view class="sbzrsxB">
							<checkbox-group @change="checkboxChange">
								<label class="gxk">
									<checkbox value="true" />我已阅读上述注意事项
								</label>
							</checkbox-group>
						</view>
					</view>
				</view>
				<view class="btn">
					<button type="primary" class="qrbtn" size="mini" @click="btnAgree">同意</button>
					<button type="default" plain="true" size="mini" @click="btnNoAgree">不同意</button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				agree: false
			}
		},
		methods: {
			checkboxChange(e) {
				if (e.detail.value[0] == "true") {
					this.agree = true;
				} else {
					this.agree = false;
				}
			},
			btnAgree() {
				if (!this.agree) {
					uni.showToast({
						title: '请勾选注意事项',
						icon: 'error',
						duration: 1000
					});
					return
				}
				uni.redirectTo({
					url: "/pages/sfsb/sbzlxxcx"
				});
				this.agree=false
			},
			btnNoAgree() {
				uni.navigateBack({
					url: "/pages/index/index"
				})
			}
		}
	}
</script>

<style>
	.title {
		width: 100%;
		height: 80rpx;
		background: #3171d5;
		text-align: center;
		line-height: 80rpx;
		color: white;
	}
    .nrzt{
		min-height:1214rpx;
		position: relative;
		margin-top: 40rpx;
	}
	.sbzrCon {
		padding: 0rpx 60rpx 0rpx 60rpx;
		box-sizing: border-box;
		width: 100%;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
	}

	.cnText {
		margin-bottom: 20rpx;
		color: black;
	}

	.sbzrsx {
		width: 100%;
		background: #ffffff;
		border: 3rpx solid #3171d5;
		border-radius: 14rpx 14rpx 0 0;
	}

	.sbzrsxH {
		width: 100%;
		height: 70rpx;
		text-align: center;
		background: #3171d5;
		line-height: 70rpx;
		color: white;
		border-radius: 10rpx 10rpx 0 0;
	}

	.sbzrsxItem {
		width: 100%;
		padding: 0 20rpx 0 20rpx;
		box-sizing: border-box;
	}

	.sbzrsxIt {
		position: relative;
		border-bottom: 4rpx dotted #3171d5;
		padding: 30rpx 0;

	}

	.sbsxIcon {
		font-size: 32rpx !important;
		color: #3171d5 !important;
		position: absolute;
		top: 32rpx;
	}

	.sbzrsxItcon {
		padding-left: 35rpx;
		font-size: 32rpx;
	}

	.sbzrsxB {
		text-align: center;
		padding: 40rpx;
		color: #3171d5;
	}

	.btn {
		text-align: center;
		padding: 60rpx 0;
	}
    .btn .qrbtn{
		background-color: #3171d5;
	}
	.btn uni-button {
		width: 240rpx;
		margin: 20rpx;
		height: 70rpx;
		line-height: 70rpx;
	}
</style>